<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>文档</title>
  <link href="./css/semantic/semantic.min.css" rel="stylesheet">
  <link href="./css/markdown.css" rel="stylesheet">
  <link href="../css/wtxynavigation.css" rel="stylesheet">
  <script src="../js/jquery.min.js"></script>
  <script type="text/javascript" src="../js/include.js"></script>
  <style>
    body{padding-top:0;background:#f7f7f7}
    body>.ui.container{width:100%;padding:0}
    #project-title{background:#6e6e6e;width:100%;line-height:3.572rem;color:#fff;font-size:1.2rem}
    #project-title .title-wrap{font-weight:700;padding:0 12px;width:100%;max-width:1366px!important;min-width:900px;margin:0 auto}
    #project-title .left,#project-title right{display:inline-block}
    #project-title .right{float:right}
    #project-title .right .wiki-actions .menu{left:auto;right:0;margin-top:.4em!important}
    #wiki-preview-container{width:100%;max-width:1366px!important;min-width:900px;padding:0;border:1px solid #e3e9ed;border-top:0}
    #wiki-preview>.ui.segment{margin-top:0;padding:1rem;padding-left:0;border:0}
    .hover-places{display:inline-block}
    #page-detail{width:60%;margin:0 auto}
    #page-detail .title{font-weight:700;font-size:24px;padding:12px 0;border-bottom:1px solid #ccc}
    #page-detail .content{margin-top:15px}
    .content p{word-wrap:break-word}
    #wiki-parent,#wiki-title,#wikis{display:none}
    .ui.grid{padding:0!important}
    #ex-all{cursor:pointer;color:#537c8d}
  </style>
</head>
<body>
  <div class="ui container">
    <div id="project-title">
      <div class="title-wrap">
        <div class="left">
          <i class="icon eye"></i>
          文档预览:
          mianmSDK
        </div>
        <div class="right">
          Export by Gitee
        </div>
      </div>
    </div>

    <div class="ui container" id="wiki-preview-container">
      <div id="wiki-preview">
        <div class="ui segment">
          <div id="page-detail" class="markdown-body">
            <div class='title'>19.NSOperation里系统是怎样移除一个已完成</div><div class='content'><h1>
<a id="nsoperation里系统是怎样移除一个isfinished为yes的nsoperation的" class="anchor" href="#nsoperation%E9%87%8C%E7%B3%BB%E7%BB%9F%E6%98%AF%E6%80%8E%E6%A0%B7%E7%A7%BB%E9%99%A4%E4%B8%80%E4%B8%AAisfinished%E4%B8%BAyes%E7%9A%84nsoperation%E7%9A%84"></a>NSOperation里系统是怎样移除一个isFinished为YES的NSOperation的?</h1>
<p><strong>关键词</strong>: <code>NSOperation</code>,<code>移除</code>, <code>销毁</code>, <code>KVO</code></p>
<h3>
<a id="1" class="anchor" href="#1"></a>1.</h3>
<h1>
<a id="答-通过kvo" class="anchor" href="#%E7%AD%94-%E9%80%9A%E8%BF%87kvo"></a>答: 通过KVO</h1>
<p>系统通过<code>KVO</code>的方式来移除<code>NSOperationQueue</code>中的一个<code>NSOperation</code>的</p></div>
          </div>
        </div>
      </div>
      </div>
  </div>
</body>
</html>